package com.xry.service;

import com.xry.bean.User;
import org.springframework.stereotype.Service;


public interface LoginService {
    String login(User user);
    User logininfo(String token);
    User rest(String oldpassword,String newpassword,Integer id);

    void sendResetCode(String email);
    void resetByEmail(String email, String code, String newPassword);

}
